<!DOCTYPE html>
<html>
<head>
	<title>推送记录</title>
	{{>/WEB-INF/pages/common/meta_base.part.html}}
	{{>/WEB-INF/pages/common/refs_base.part.html}}
	{{>/WEB-INF/pages/common/refs_modal.part.html}}
</head>
<body>
{{>/WEB-INF/pages/common/layout_header.part.html}}
<div class="container">
	<ul class="breadcrumb">
	  <li><a href="{{ctx}}">首页</a></li>
	  <li><a href="{{ctx}}/notice?appId={{appId}}">公告</a></li>
	  <li class="active">推送详情</li>
	</ul>
	<div style="margin:10px 20px 10px">
		<div class="row">
			<div class="col-sm-6">
			{{>/WEB-INF/pages/common/simplequery.part.html}}
			</div>
			<div class="col-sm-6" style="padding-left:0">
				<a href="{{ctx}}/notice?appId={{appId}}" class="btn btn-default" title="返回至公告列表">返回</a>
			</div>
		</div>
    </div>
    <table class="table table-striped table-bordered table-condensed">
    	<tbody>
    		<tr>
    			<td width="200px">推送请求提交时间</td>
    			<td>
    			<script type="text/javascript">
					document.write($.format.date(
							"{{pushRequest.submitTime}}",
							"yyyy-MM-dd HH:mm:ss"))
				</script>
    			</td>
    		</tr>
    		<tr>
    			<td>目标设备数</td>
    			<td>{{pushRequest.affectedDevices}}</td>
    		</tr>
    	</tbody>
    </table>
	<table id="contentTable" class="table table-striped table-bordered table-condensed">
		<thead><tr>
		<th>设备ID</th><th>用户名</th><th>渠道ID</th><th>当前状态</th><th>创建时间</th>
		</tr></thead>
		<tbody>
		{{#pushs.content}}		
			<tr>
				<td>{{target.deviceId}}</td>
				<td>{{target.alias}}</td>
				<td>{{channelId}}</td>
				<td>
					{{#failure}}
					<span class="label label-danger" data-toggle="tooltip" title="错误信息:{{lastErrorMsg}}">{{status}}</span>
					{{/failure}}
					{{^failure}}
					{{status}}
					{{/failure}}
				</td>
				<td>
				<script type="text/javascript">
					document.write($.format.date(
							"{{createTime}}",
							"yyyy-MM-dd HH:mm:ss"))
				</script>
				</td>
			</tr>
		{{/pushs.content}}
		</tbody>
	</table>
	{{#page}}
	{{>/WEB-INF/pages/common/pagination.part.html}}
	{{/page}}
	{{>/WEB-INF/pages/common/layout_footer.part.html}}
</div>	
</body>
</html>
